package org.jeecg.modules.zcgl.service;

import org.jeecg.modules.system.entity.SysDepart;
import org.jeecg.modules.zcgl.entity.StatementAccountDetails;
import org.jeecg.modules.zcgl.entity.StatementAccount;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * @Description: 对账单信息
 * @Author: jeecg-boot
 * @Date:   2021-01-15
 * @Version: V1.0
 */
public interface IStatementAccountService extends IService<StatementAccount> {

	/**
	 * 添加一对多
	 *
     * @return
     */
	public boolean saveOrUpdateMain(StatementAccount statementAccount, List<StatementAccountDetails> statementAccountDetailsList) ;

	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 *
	 * 根据单位下载对账单
	 * @param depart 单位
	 * @param date 日期
	 */
    void statementAccountByDepart(SysDepart depart, Date date);
}
